<%-- 
    Document   : alert
    Created on : Jul 15, 2010, 5:54:59 PM
    Author     : Lakshmi Narayanan
--%>
<%@taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<html>
    <body onload="window.parent.closeProgressBar();">
        <div class="alertbox" style="background-color: black; color: white;">
            <p><c:out value="${param.value}"/></p>
            <p style="text-align : right;padding-right: 40px;">
                <input type="button" value="Yes" onclick="yes('${param.childName}','${param.url}')"/>
                <input type="button" value="No" onclick="no()"/>
            </p>
        </div>
    </body>
    <script type="text/javascript">
        function yes(childName,url){
            window.parent.showProgressBar();
            if(childName==''){
                window.parent.location=url;
            }else{
                window.parent.exitChilds(childName,url);
            }
            window.parent.Lightbox.close();
        }
        function no(){
            window.parent.closeProgressBar();
            window.parent.Lightbox.close();
        }
    </script>
</html>